﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="M_EditNewsInfo.aspx.cs" Inherits="Web_HengliSeed.Sys_Manage.M_EditNewsInfo" EnableEventValidation="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>    
    <link rel="stylesheet" type="text/css" href="../ueditor/themes/default/ueditor.css" />
    <script src="../ueditor/editor_all.js" type="text/javascript"></script>
    <script src="../ueditor/editor_config.js" type="text/javascript"></script>

    <link href="../Style/Manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JavaScript/Jquery.js"></script>
    <script type="text/javascript" src="../JavaScript/Admin.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="div_All">
    <div class="Body_Title">资讯信息管理 》》编辑资讯信息</div>
        <hr />
    
    </div>
    <table cellpadding="2" cellspacing="1">
        <tr>
            <td style="width:75px;">资讯类别：</td>
            <td>
                <asp:DropDownList ID="DDLProClass" runat="server">
                </asp:DropDownList><span class="WarnMes">*</span>资讯的分类信息，必选。&nbsp;&nbsp;
                <%
                if (!string.IsNullOrEmpty(Request["lan"]))
                {
                    if (Request["lan"] == "en")
                    {
                        Response.Write("<input type=\"button\" value=\"中文版\" onclick='javascript:location.href=\"M_EditNewsInfo.aspx?lan=cn\"' />");
                    }
                    else
                    {
                        Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_EditNewsInfo.aspx?lan=en\"' />"); 
                    }
                }
                else
                {
                    Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_EditNewsInfo.aspx?lan=en\"' />");
                }
                 %>

                 &nbsp;
                 <asp:Button ID="BtnNewsSave" runat="server" Text=" 保存信息 " onclick="BtnSave_Click" />
                </td>
        </tr>
        <tr>
            <td>
                资讯标题：</td>
            <td>
                <input id="txtProName" type="text" style="width:300px;" maxlength="45" runat="server"/><span class="WarnMes">*</span>资讯信息的标题，50个汉字以内。</td>
        </tr>
        <tr>
            <td colspan="3">
                <textarea cols="10" rows="10" runat="server" id="txtContent" ></textarea>
                <script type="text/javascript">
                    var ue = new baidu.editor.ui.Editor();
                    ue.render('txtContent');
                    ue.addListener("selectionchange", function () {
                        var state = ue.queryCommandState("source");
                        var btndiv = document.getElementById("btns");
                        if (btndiv) {
                            if (state) {
                                btndiv.style.display = "none";
                            } else {
                                btndiv.style.display = "";
                            }
                        }

                    });
                    </script>
                </td>
        </tr>
        <tr>
            <td>
                </td>
            <td>
                &nbsp;
                <input id="txtRe" type="reset" value=" 重置 " />&nbsp;<input id="BtnNewsInfo" type="button"  value=" 返回 " onclick='javascript:location.href="M_NewsList.aspx"'  /></td>
            <td></td>
        </tr>
    </table>
    </form>
    </body>
</html>
